using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ButtlePrefab : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        Destroy(gameObject, 5f);  // 5秒后销毁
        
    }

    // Update is called once per frame
    void Update()
    {
        transform.Translate(Vector3.forward*Time.deltaTime*5);  // 向前移动
        // transform.LookAt(Vector3.zero);  // 朝向原点
    }
}
